package com.example.service3;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: UserController
 * @description:
 * @author: yang pan
 */
@RequestMapping()
@RestController
public class UserController {


    @Autowired
    private UserService userService;

    @RequestMapping("/getUser")
    public String getUser(){
        return userService.getUser();
    }

    @RequestMapping("/getUserInfo")
    public String getUserInfo(){
        String userId = "1";
        return userService.getUserInfo(userId);
    }



}
